/*
 * Copyright (c) 2012 Robert Burrell Donkin robertburrelldonkin.name
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software 
 * and associated documentation files (the "Software"), to deal in the Software without restriction, 
 * including without limitation the rights to use, copy, modify, merge, publish, distribute, 
 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software 
 * is furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all copies or 
 * substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING 
 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * 
 */
package sekhmet.reader;

import java.io.IOException;


public class Global {

	private static final String MAIN_TXT = "main.txt";
	private static final String BOILER_TXT = "boiler_en.txt";
	private static final String PROMPTS_TXT = "prompts_en.txt";
	
	public static String toPath(String base) {
		return base.replace('.', '/') + "/";
	}

	private final int startDelay = 5;
	private final int endDelay = 5;
	static final String TRANSCRIPT_TXT = "transcript.txt";
	static final String LICENSE_TXT = "LICENSE.txt";
	static final String UTF_8 = "UTF-8";

	
	public int getStartDelay() {
		return startDelay;
	}

	public int getEndDelay() {
		return endDelay;
	}

	PlainText readLicense(final String path) throws IOException {
		return PlainText.read(path + LICENSE_TXT);
	}
	
	PlainText readPrompts(final String path2) throws IOException {
		return PlainText.read(path2 + Global.PROMPTS_TXT);
	}

	PlainText readBoiler(final String path2) throws IOException {
		return PlainText.read(path2 + Global.BOILER_TXT);
	}

	PlainText readMain(final String path2) throws IOException {
		return PlainText.read(path2 + Global.MAIN_TXT);
	}
}
